import {$get} from "@/utils/api/getApi";

export const returnCar = (data) => {
    return uni.$post("/wechat/vehorder/returnCar", data)
}

export const addOrder = (data) => {
    return uni.$post('/wechat/vehorder/addOrder', data)
}

export const continuedOrder = (data) => {
    return uni.$post('/wechat/vehorder/continuedOrder', data)
}

export const relatedOrder = (data) => {
    return $get(`/wechat/vehorder/relatedOrder/${data}`)
}

// export const test = (data) => {
//     return $get(`/wechat/vehorder/test/${data}`)
// }

export const createSignContractUrl=(data)=>{
    return uni.$post('/wechat/vehorder/createSignContract',data)
}

export const initiateContract=(date)=>{
    return uni.$post('/wechat/vehorder/initiateContract',date)
}

//修改取车、还车地址变更
export const changeAddress=(data)=>{
    return $get('/wechat/vehorder/changeAddress',data)
}